﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Wijmo.Master" AutoEventWireup="true" CodeBehind="DataBinding.aspx.cs" Inherits="ControlExplorer.Accordion.DataBinding" %>

<%@ Register Assembly="C1.Web.Wijmo.Controls.3" Namespace="C1.Web.Wijmo.Controls.C1Accordion" TagPrefix="C1Accordion" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
		<C1Accordion:C1Accordion runat="server"
			ID="C1Accordion1"
			DataSourceID="AccessDataSource1">
		</C1Accordion:C1Accordion>

		<asp:AccessDataSource ID="AccessDataSource1" runat="server" 
			DataFile="~/App_Data/C1NWind.mdb" 
			SelectCommand="SELECT [CategoryName], [Description] FROM [Categories]">
		</asp:AccessDataSource>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Description" runat="server">
	<p>此示例展示了如何向 <strong>C1Accordion</strong> 控件绑定数据。</p>
	<p>&nbsp;</p>
	<p>在此示例中，<strong>标题 </strong>和 <strong>内容</strong> 数据由
		<strong>C1Accordion</strong> 控件自由确定。</p>
	<p>如果您想在特殊的区域绑定标题/内容，您可以调用<strong>HeaderField</strong>和<strong>ContentField</strong> 属性，例如:
<pre class="controldescription-code">
&lt;C1Accordion:C1Accordion runat="server"
			ID="C1Accordion1"
			DataSourceID="AccessDataSource1" 
			HeaderField="Description" 
			ContentField="CategoryName"&gt;
&lt;/C1Accordion:C1Accordion&gt;
</pre>
		
		</p>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ControlOptions" runat="server">
</asp:Content>
